package com.lnsoft.dqfs;

import com.lnsoft.dqfs.server.DqfsServer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(value = 3)
public class NettyServerRunner implements CommandLineRunner {
	private static final Logger log = LoggerFactory.getLogger(NettyServerRunner.class);

    @Autowired
    private DqfsServer dqfsServer;

    @Override
    public void run(String... args) throws Exception {
        log.debug("NettyServerRunner执行----------------");
        dqfsServer.start();
        log.debug("NettyServerRunner执行完毕----------------");
    }
}
